.class public abstract Lcom/hierynomus/asn1/r;
.super Lcom/hierynomus/asn1/q;
.source "ASN1Sequence.java"

# interfaces
.implements Ljava/lang/Iterable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/hierynomus/asn1/q;",
        "Ljava/lang/Iterable<",
        "Lcom/hierynomus/asn1/e;",
        ">;"
    }
.end annotation


# instance fields
.field protected a:Ljava/util/Vector;


# direct methods
.method protected constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/hierynomus/asn1/q;-><init>()V

    .line 2
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    return-void
.end method

.method protected constructor <init>(Lcom/hierynomus/asn1/f;)V
    .locals 3

    .line 3
    invoke-direct {p0}, Lcom/hierynomus/asn1/q;-><init>()V

    .line 4
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    const/4 v0, 0x0

    .line 5
    :goto_0
    invoke-virtual {p1}, Lcom/hierynomus/asn1/f;->a()I

    move-result v1

    if-eq v0, v1, :cond_0

    .line 6
    iget-object v1, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    invoke-virtual {p1, v0}, Lcom/hierynomus/asn1/f;->a(I)Lcom/hierynomus/asn1/e;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method private a(Ljava/util/Enumeration;)Lcom/hierynomus/asn1/e;
    .locals 0

    .line 13
    invoke-interface {p1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/hierynomus/asn1/e;

    return-object p1
.end method


# virtual methods
.method public a(I)Lcom/hierynomus/asn1/e;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/hierynomus/asn1/e;

    return-object p1
.end method

.method a(Lcom/hierynomus/asn1/q;)Z
    .locals 4

    .line 2
    instance-of v0, p1, Lcom/hierynomus/asn1/r;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 3
    :cond_0
    check-cast p1, Lcom/hierynomus/asn1/r;

    .line 4
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->size()I

    move-result v0

    invoke-virtual {p1}, Lcom/hierynomus/asn1/r;->size()I

    move-result v2

    if-eq v0, v2, :cond_1

    return v1

    .line 5
    :cond_1
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->j()Ljava/util/Enumeration;

    move-result-object v0

    .line 6
    invoke-virtual {p1}, Lcom/hierynomus/asn1/r;->j()Ljava/util/Enumeration;

    move-result-object p1

    .line 7
    :cond_2
    :goto_0
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-eqz v2, :cond_4

    .line 8
    invoke-direct {p0, v0}, Lcom/hierynomus/asn1/r;->a(Ljava/util/Enumeration;)Lcom/hierynomus/asn1/e;

    move-result-object v2

    .line 9
    invoke-direct {p0, p1}, Lcom/hierynomus/asn1/r;->a(Ljava/util/Enumeration;)Lcom/hierynomus/asn1/e;

    move-result-object v3

    .line 10
    invoke-interface {v2}, Lcom/hierynomus/asn1/e;->d()Lcom/hierynomus/asn1/q;

    move-result-object v2

    .line 11
    invoke-interface {v3}, Lcom/hierynomus/asn1/e;->d()Lcom/hierynomus/asn1/q;

    move-result-object v3

    if-eq v2, v3, :cond_2

    .line 12
    invoke-virtual {v2, v3}, Lcom/hierynomus/asn1/q;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    goto :goto_0

    :cond_3
    return v1

    :cond_4
    const/4 p1, 0x1

    return p1
.end method

.method g()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method h()Lcom/hierynomus/asn1/q;
    .locals 2

    .line 1
    new-instance v0, Lcom/hierynomus/asn1/a1;

    invoke-direct {v0}, Lcom/hierynomus/asn1/a1;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    iput-object v1, v0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    return-object v0
.end method

.method public hashCode()I
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->j()Ljava/util/Enumeration;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->size()I

    move-result v1

    .line 3
    :goto_0
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    invoke-direct {p0, v0}, Lcom/hierynomus/asn1/r;->a(Ljava/util/Enumeration;)Lcom/hierynomus/asn1/e;

    move-result-object v2

    mul-int/lit8 v1, v1, 0x11

    .line 5
    invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I

    move-result v2

    xor-int/2addr v1, v2

    goto :goto_0

    :cond_0
    return v1
.end method

.method i()Lcom/hierynomus/asn1/q;
    .locals 2

    .line 1
    new-instance v0, Lcom/hierynomus/asn1/m1;

    invoke-direct {v0}, Lcom/hierynomus/asn1/m1;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    iput-object v1, v0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    return-object v0
.end method

.method public iterator()Ljava/util/Iterator;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Iterator<",
            "Lcom/hierynomus/asn1/e;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/hierynomus/asn1/utils/a$a;

    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->toArray()[Lcom/hierynomus/asn1/e;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/hierynomus/asn1/utils/a$a;-><init>([Ljava/lang/Object;)V

    return-object v0
.end method

.method public j()Ljava/util/Enumeration;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v0

    return-object v0
.end method

.method public size()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    return v0
.end method

.method public toArray()[Lcom/hierynomus/asn1/e;
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->size()I

    move-result v0

    new-array v0, v0, [Lcom/hierynomus/asn1/e;

    const/4 v1, 0x0

    .line 2
    :goto_0
    invoke-virtual {p0}, Lcom/hierynomus/asn1/r;->size()I

    move-result v2

    if-eq v1, v2, :cond_0

    .line 3
    invoke-virtual {p0, v1}, Lcom/hierynomus/asn1/r;->a(I)Lcom/hierynomus/asn1/e;

    move-result-object v2

    aput-object v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/r;->a:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
